#!/bin/bash
export JAVA_HOME=/cygdrive/c/dev/projects/tools/java/jdk1.7.0_10

echo Removing old libs
rm -rf .idea/libraries
rm -rf .idea_modules/Natalie*.iml

echo Updating dependencies...
./sbt.sh clean update gen-idea

rm -rf ./src/main/java
rm -rf ./src/test/java

sed '/src\\main\\java/d' .classpath | sed '/src\\test\\java/d' > classpath
mv classpath .classpath

echo ... all updated.

echo Additional things to do:
echo "1. IntelliJ: Update the compiler settings to include ?*.props in the build"
